package com.baiduspring.function.elasticsearch.error;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义异常类
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class ElasticSearchException extends RuntimeException {
    private String message;

    public ElasticSearchException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }
}
